# 作者：要努力，努力，再努力
# 开发时间：2022/4/28 14:38

def count(s, ch):
    count = 0
    for item in s:
        if ch.upper() == item or ch.lower() == item:
            count += 1
    return count


if __name__ == '__main__':
    s = 'hellopython,hellojava,hellogo'
    ch = input('请输入一个字符')
    num = count(s, ch)
    print(f'出现次数为{num}')
